package com.tensquare.spit.spitdao;

import com.tensquare.spit.pojo.Spit;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.jmx.export.annotation.ManagedOperation;

/**
 * Created with IDEA
 * author:zhiXiang-Chen
 * Date:2019/3/2
 * Time:9:57
 */
public interface SpitDao extends MongoRepository<Spit,String> {

    Page<Spit> findByParentid(String parentId, Pageable pageable);
}
